package name.luoyong.shiro.shiroIniCustom.listener;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpSession;

public class SessionMap {
	
	private static Map<String, HttpSession> map = new HashMap<String, HttpSession>();
	
	public static void put(String sessionId, HttpSession session) {
		map.put(sessionId, session);
	}
	
	public static HttpSession get(String sessionId) {
		return map.get(sessionId);
	}
	
	public static HttpSession remove(String sessionId) { 
		return map.remove(sessionId);
	}
	
	public static long size() {
		return map.size();
	}
	
	public static void clear() {
		map.clear();
	}

}
